package com.lzs.esubscribe.utils;

import org.springframework.stereotype.Component;

import java.text.SimpleDateFormat;
import java.util.Date;

/**
 * @author : liangzesheng
 * @Date : 2022-02-17
 * @Description : 时间工具类
 */
@Component
public class TimeStampUtils {
    public String getTimestamp() {
        //获取14位时间戳
        SimpleDateFormat df = new SimpleDateFormat("yyyyMMddHHmmss");
        String timeStamp = df.format(new Date());
        return timeStamp;
    }
}
